import request from "@/utils/request";
const BASE_URL= '/admin/system/menu/'
export default {
  findNode(){
    return request({
      url: `${BASE_URL}/findNode`,
      method :'get',
    })
  },
  updateMenu(menuObject){

    return request({
      url: `${BASE_URL}/updateMenu`,
      method :'post',
      data: menuObject
    })
  },
  addMenu(menuObject){
    return request({
      url: `${BASE_URL}/addMenu`,
      method :'post',
      data: menuObject
    })
  },
  removeMenu(id){
    return request({
      url:`${BASE_URL}/delete/${id}`,
      method:'delete',
      data: id
    })
  },
  updateStatus(menuObject){
    return request({
      url:`${BASE_URL}/updateStatus`,
      method :'post',
      data:menuObject
    })
  }
}
